<link rel="stylesheet" href="/styles.css" type="text/css"> 
<?
echo ($errorMsg == "") ? "" : "<span class='error'>$errorMsg</span>";
$errorMsg = "";
session_save(sid);

$a = get_all_referer_groups();

echo "<center>";
echo $a;
echo "</center>";

?>
<center>
<table border='0'class='bTable' cellpadding='0' cellspacing='0'>
<tr>
	<th>Referer URL</th>
	<th>Group</th>
	<th>ADD</th>
</tr>
	
	<tr>
		<form action='?sid=<?=$sid; ?>' method='POST'>
			<td>
				<input type='text' name='ref'>			
			</td>
			<td>
				<input type='radio' name='n' value='1' checked>
				<select name='group1'>
					<? echo get_all_referer_groups('select'); ?>
				</select><br>
				 <input type='radio' name='n' value='2'>
				 <input type='text' name='group2'>
			</td>
			<td>
				<input type='hidden' name='action' value='addRef'>
				<input type='submit' value='Add'>
			</td>

		</form>
	</tr>
</table>
</center>